package com.sun.config;

import org.springframework.context.annotation.Configuration;

import java.util.concurrent.atomic.AtomicInteger;

@Configuration
public class GlobalVariableConfig {

    private AtomicInteger sessionCount = new AtomicInteger(0);

    public int getSessionCount() {
        return sessionCount.get();
    }

    public void setSessionCount(int count) {
        this.sessionCount.set(count);
    }

    public void incrementSessionCount() {
        this.sessionCount.incrementAndGet();
    }

}
